package com.time.thread.basic;

/**
 * @program: tes
 * @description:
 * @author: xuejingjing
 * @create: 2021-10-19 09:18
 **/
public class RunnableThread implements Runnable {
    @Override
    public void run() {
        try {
            for (int i = 0; i < 10 ; i++) {
                Thread.sleep(1000);
                System.out.println(Thread.currentThread().getName() +"执行了");
            }

        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
